
add_executable(target-demosvc
    service.cpp
    main.cpp
)

target_include_directories(target-demosvc
PUBLIC
    $<INSTALL_INTERFACE:include>
PRIVATE
    $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
    #$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
    #$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>

)

target_link_libraries(target-demosvc
PRIVATE
    nosal::demo-lib
)

set_target_properties(target-demosvc PROPERTIES
    OUTPUT_NAME demo-svc
)

install(
    TARGETS target-demosvc
    RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR}
)
